namespace go industics.blockchain.production

include "base.thrift"

service ProductionService {
    base.BaseGetResp GetLotTracing(1:base.BaseGetReq req)
    base.BaseGetResp GetWorkOrder(1:base.BaseGetReq req)
    base.BaseGetResp GetESOP(1:base.BaseGetReq req)

    base.BaseGetResp GetLotTracingHistory(1:base.BaseGetReq req)
    base.BaseGetResp GetWorkOrderHistory(1:base.BaseGetReq req)
    base.BaseGetResp GetESOPHistory(1:base.BaseGetReq req)

    base.BaseGetResp GetLotTracingByRange(1:base.BaseRangeGetReq req)
    base.BaseGetResp GetWorkOrderByRange(1:base.BaseRangeGetReq req)
    base.BaseGetResp GetESOPByRange(1:base.BaseRangeGetReq req)

    base.BasePostResp CreateLotTracing(1:base.BasePostReq req)
    base.BasePostResp CreateWorkOrder(1:base.BasePostReq req)
    base.BasePostResp CreateESOP(1:base.BasePostReq req)

    base.BasePutResp UpdateLotTracing(1:base.BasePutReq req)
    base.BasePutResp UpdateWorkOrder(1:base.BasePutReq req)
    base.BasePutResp UpdateESOP(1:base.BasePutReq req)

    base.BaseDeleteResp DeleteLotTracing(1:base.BaseDeleteReq req)
    base.BaseDeleteResp DeleteWorkOrder(1:base.BaseDeleteReq req)
    base.BaseDeleteResp DeleteESOP(1:base.BaseDeleteReq req)
}